package com.dingreading.cloud.web.service;

import com.dingreading.cloud.web.dto.ReadstarStudentDto;
import com.dingreading.cloud.web.entity.ReadstarStudent;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2025-03-24
 */
public interface ReadstarStudentService extends IService<ReadstarStudent> {

    ReadstarStudent getByUid(String uid);

    boolean exitPhoneAndUserName(String uid, String phone, String userName);

    long getCount(String openid);

    List<ReadstarStudentDto> listByOpenid(String openid);

    ReadstarStudentDto getByOpenidAndStudentUid(String openid, String studentUid);

    void updateOrderUid(String studentUid, String orderUid);
}
